#ifndef TRAYICON_H
#define TRAYICON_H

#include <QSystemTrayIcon>
#include <QtGui/QIcon>
#include <QMenu>
#include <QAction>

class TrayIcon : public QSystemTrayIcon
{
  Q_OBJECT
public:
  explicit TrayIcon(QObject *parent = 0, QIcon* icon = NULL);
  ~TrayIcon();
  
signals:
  void showUp();

public slots:
  void activate(QSystemTrayIcon::ActivationReason reason);

protected:
  void createMenu();
  QMenu* menu;

  void createActions();
  QAction* simulatorAction;
  QAction* eventAction;
  QAction* chatAction;
  QAction* optionAction;
  QAction* quitAction;
};

#endif // TRAYICON_H
